package com.cxd.performance.enums;


import com.cxd.performance.service.IBusinessException;

/**
 * Author: Calvin
 * Date: 2019-08-30 8:40
 * Description: 文件相关异常码
 */
public enum  FileCodeEnum  implements IBusinessException {

    FILE_IS_EMPTY("2101","请选择上传文件"),
    FILE_IMAGETYPE_ERROR("2101","图片格式错误"),
        ;

    private String code;
    private String msg;

    private FileCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return this.msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String toString() {
        return "FileCodeEnum{code='" + this.code + '\'' + ", msg='" + this.msg + '\'' + '}';
    }
}
